package FourArithmeticOperations;

/**
 * Created by dell on 2017/10/14.
 */
public class Customer {
    private int arrivalTime,departureTime;
    public Customer(int arrives){
        arrivalTime = arrives;
        departureTime = 0;
    }
    public int getArrivalTime(){
        return arrivalTime;
    }
    public void setDepartureTime(int departs){
        departureTime = departs;
    }
    public int getDepartureTime(){
        return departureTime;
    }
    public int totalTime(){
        return departureTime - arrivalTime;
    }
}
